package com.cn.wanxi.mapper;

import com.cn.wanxi.entity.NewsEntity;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface NewsMapper extends BaseMapper<NewsEntity> {
    /**
     * 查找上一个新闻
     * @param newsEntity
     * @return
     */
    NewsEntity findPrevious(NewsEntity newsEntity);

    /**
     * 查找下一个新闻
     * @param newsEntity
     * @return
     */
    NewsEntity findNext(NewsEntity newsEntity);
}
